package com.jk1123.docker.controller;

import com.jk1123.docker.util.FooUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/docker")
public class DockerController {
    @GetMapping("/hello")
    public Object hello(){
        FooUtil.foo();
        Map<String,Object> result=new HashMap<>();
        result.put("code","200");
        result.put("data","docker hello ~~~");
        result.put("msg","操作成功");

        return result;
    }
}
